package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.domain.entity.ext.OptionalRangeEntity;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author weiming
 * @date 2021/4/7 14:49
 */
@Getter
@Setter
public class CustomPkSetDTO extends BaseDTO {

    /**
     * pk榜指标id
     */
    private Long chartId;

    /**
     * 指标名称
     */
    private String name;

    /**
     * 原指标名称
     */
    private String oldName;

    /**
     * 备注
     */
    private String memo;

    /**
     * 是否启用指标
     */
    private Boolean enable;

    /**
     * [{property: "dept", editable: 1, id: 5, name: "研发部"},
     * {property: "role", editable: 1, id: "2", name: "角色2"},
     * {property: "user", editable: 1, id: "1", name: "张杰"}]
     * Pk榜范围设置参与的人员
     */
    private List<OptionalRangeEntity> joinRule;

    /**
     * [{property: "dept", editable: 1, id: 5, name: "研发部"},
     * {property: "role", editable: 1, id: "2", name: "角色2"},
     * {property: "user", editable: 1, id: "1", name: "张杰"}]
     * Pk榜范围设置不参与的人员
     */
    private List<OptionalRangeEntity> removeRule;

    /**
     * [{property: "dept", editable: 1, id: 5, name: "研发部"},
     * {property: "role", editable: 1, id: "2", name: "角色2"},
     * {property: "user", editable: 1, id: "1", name: "张杰"}]
     * Pk榜可见权限范围
     */
    private List<OptionalRangeEntity> scopeRule;

    /**
     * Pk榜可见范围设置，可见数据权限类型，0，数据权限，1，全部数据
     */
    private Integer powerType;
}
